﻿

namespace DualPlaneFR4Paster.Common.Services
{
    interface IPLCModbusService
    {
        bool[] XCoils_X0 { get; set; }
        bool[] XCoils_X10000 { get; set; }
        bool[] XCoils_X10100 { get; set; }
        bool[] XCoils_X10200 { get; set; }
        bool[] MCoils_M2000 { get; set; }
        bool Connect(string _portName);
        bool[] ReadM(byte station, ushort address, ushort count);
        void SetM(byte station, ushort address, bool value);
        int ReadDHD(byte station, int address);
        void WriteDHD(byte station, int address, int value);
        void Close();
    }
}
